package lang;

import java.text.SimpleDateFormat;
import java.util.Date;

public class MxDate {
    public static void main(String[] args) throws Exception {
        SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
        Date date = format.parse("2018-01-22");
        System.out.println(date.before(new Date()));
    }
}
